package com.yl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yl.domain.ConferenceApplyDO;
import com.yl.domain.StudentReplyDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConferenceApplyMapper extends BaseMapper<ConferenceApplyDO> {

    /**
     * 学生回答完毕10分钟后提交结果
     * @author : y
     * @date :  2024/7/14 16:29
     **/
    // List<ConferenceApplyDO> findListByFinishTime(@Param("endNum")Integer endNum);
    List<ConferenceApplyDO> findListByFinishTime();

    void prepareByConferenceId(@Param("conferenceId") Long conferenceId,@Param("studentId") Long studentId);

    /**
     * 投票
     * @author : y
     * @date :  2024/7/17 15:08
     **/
    void voteAdd(@Param("conferenceId") Long conferenceId,@Param("studentId") Long studentId);


    /**
     * 标记谁投票了
     * @author : y
     * @date :  2024/7/17 15:14
     **/
    void updateVote(@Param("conferenceId") Long conferenceId,@Param("studentId") Long studentId);




    /**
     * 查询已处理完
     * @author : y
     * @date :  2024/7/18 10:34
     **/
    List<ConferenceApplyDO> findListByNotReport();
}
